﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tender.Tool
{
    public partial class Addedmessage : Form
    {
        /// <summary>
        /// 第一个参数表名称 第二给参数表名
        /// </summary>
        public Action<string,string,string> action { get; set; }
        public Addedmessage(Action<string, string,string> action)
        {
            InitializeComponent();
            this.action= action;
        }

        private void uiButton2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void uiButton1_Click(object sender, EventArgs e)
        {
            action?.Invoke(uiTextBox1.Text.Trim(),uiTextBox2.Text.Trim(),uiTextBox3.Text.Trim());
            this.Close();
        }
    }
}
